package com.cnhis.cloudhealth.clinical.clidoctor.cliparamter.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;

@SuppressWarnings("rawtypes")
@Repository
public class CliParamterDao extends BaseDao
{
    
    public String getSysParamValue(Map map)
        throws Exception
    {
        return (String)this.queryToObject("CliParamter.getSysParamValue", map);
    }
    
    public List queryAllPublicParamter(Map map)
        throws Exception
    {
        return this.queryForList("CliParamter.queryAllPublicParamter", map);
    }
    
    public List operationScope()
        throws Exception
    {
        return this.queryForList("CliParamter.operationScope", null);
    }
    
    public List chargeStandards()
        throws Exception
    {
        return this.queryForList("CliParamter.chargeStandards", null);
    }
    
    public List prescriptionRestrictedCondition(Map map)
        throws Exception
    {
        return this.queryForList("CliParamter.prescriptionRestrictedCondition", map);
    }
    
    public List checkCrisisValue(Map map)
        throws Exception
    {
        return this.queryForList("CliParamter.checkCrisisValue", map);
    }
    
    public List clinicalUnsupportHealthInsurance(Map map)
        throws Exception
    {
        return this.queryForList("CliParamter.clinicalUnsupportHealthInsurance", map);
    }
    
    public Page checkIllnessMenu(Map map, int currPage, int pageSize)
        throws Exception
    {
        return this.queryForPage("CliParamter.checkIllnessMenu", map, currPage, pageSize);
    }
    
    public Map getMttdParams()
        throws Exception
    {
        return (Map)queryForExtObject("CliParamter.getMttdParams", null);
    }
    
    public Page getaParamno0List(Map map , int currPage, int pageSize)
        throws Exception
    {
        if ("8".equals(map.get("bdm01")))
        {
            return queryForPage("CliParamter.getaParamno0List_8", map, currPage, pageSize);
        }
        else 
        {
            return queryForPage("CliParamter.getaParamno0List", map, currPage, pageSize);
        }
    }
    
    public List cliHomePagePatientBasicInfo(Map map)
        throws Exception
    {
        return queryForList("CliParamter.cliHomePagePatientBasicInfo", map);
    }
    
    public List cliHomePageAllergy(Map map)
        throws Exception
    {
        return queryForList("CliParamter.cliHomePageAllergy", map);
    }
    
    public List cliHomePageTreatmentRecord(Map map)
        throws Exception
    {
        return queryForList("CliParamter.cliHomePageTreatmentRecord", map);
    }
    
    public Page getaParamnoeList(Map map, int currentPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliParamter.getaParamnoeList", map, currentPage, pageSize);
    }
    
    public Page getaParamnoe1List(Map map, int currentPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliParamter.getaParamnoe1List", map, currentPage, pageSize);
    }
    
    public Page getaParamnoe2List(Map map, int currentPage, int pageSize)
        throws Exception
    {
        return queryForPage("CliParamter.getaParamnoe2List", map, currentPage, pageSize);
    }
    
    public void deleteTreatmentRecord(Map map)
        throws Exception
    {
        this.delete("CliParamter.deleteTreatmentRecord", map);
    }
    
    public String getAgen(Map map)
        throws Exception
    {
        return (String)this.queryForExtObject("CliParamter.getAgen", map);
    }
    
    public int getTmpVACmAndPara58(Map map)
        throws Exception
    {
        return (int)queryForExtObject("CliParamter.getTmpVACmAndPara58", map);
    }
    
    public String setVAA10(Map map)
        throws Exception
    {
        return (String)this.queryToObject("CliParamter.setVAA10", map);
    }
    
    public int ZAE1param1(Map map)
        throws Exception
    {
        return (int)queryForExtObject("CliParamter.ZAE1param1", map);
    }
    
    public void saveZAE1param1(Map map)
        throws Exception
    {
        this.insert("CliParamter.saveZAE1param1", map);
    }
    
    public int ZAE1param2(Map map)
        throws Exception
    {
        return (int)queryForExtObject("CliParamter.ZAE1param2", map);
    }
    
    public void saveZAE1param2(Map map)
        throws Exception
    {
        this.insert("CliParamter.saveZAE1param2", map);
    }
    
    public void updateVAA1AndVAC1(Map map)
        throws Exception
    {
        this.update("CliParamter.updateVAA1AndVAC1", map);
    }
    
    public int VCJ1Param(Map map)
        throws Exception
    {
        return (int)this.queryForExtObject("CliParamter.VCJ1Param", map);
    }
    
    public void updateVCJ1(Map map)
        throws Exception
    {
        this.update("CliParamter.updateVCJ1", map);
    }
    
    public void insertVCJ1(Map map)
        throws Exception
    {
        this.insert("CliParamter.insertVCJ1", map);
    }
    
    public int VBN1Param(Map map)
        throws Exception
    {
        return (int)queryForExtObject("CliParamter.VBN1Param", map);
    }
    
    public int VBN1Param1(Map map)
        throws Exception
    {
        return (int)queryForExtObject("CliParamter.VBN1Param1", map);
    }
    
    public void updateVBN1(Map map)
        throws Exception
    {
        update("CliParamter.updateVBN1", map);
    }
    
    public void insertVBN1(Map map)
        throws Exception
    {
        update("CliParamter.insertVBN1", map);
    }
    
    public int param1(Map map)
        throws Exception
    {
        return (int)this.queryForExtObject("CliParamter.param1", map);
    }
    
    public void insertVAL1(Map map)
        throws Exception
    {
        insert("CliParamter.insertVAL1", map);
    }
    
    public int tmpVAOmParam1(Map map)
        throws Exception
    {
        return (int)queryToObject("CliParamter.tmpVAOmParam1", map);
    }
    
    public void deleteVAO1(Map map)
        throws Exception
    {
        delete("CliParamter.deleteVAO1", map);
    }
    
    public void updateVAO1(Map map)
        throws Exception
    {
        delete("CliParamter.updateVAO1", map);
    }
    
    public int tmpVAOmParam2(Map map)
        throws Exception
    {
        return (int)queryToObject("CliParamter.tmpVAOmParam2", map);
    }
    
    public void deleteVao1(Map map)
        throws Exception
    {
        delete("CliParamter.deleteVao1", map);
    }
    
    public int tmpVAOmParam3(Map map)
        throws Exception
    {
        return (int)queryToObject("CliParamter.tmpVAOmParam3", map);
    }
    
    public void insertVao1(Map map)
        throws Exception
    {
        insert("CliParamter.insertVao1", map);
    }
    
    public void insertZIU1(Map map)
        throws Exception
    {
        insert("CliParamter.insertZIU1", map);
    }
    
    public List interfaceSetting()
        throws Exception
    {
        return queryForList("CliParamter.interfaceSetting", null);
    }
    
    public List patientLimit(Map map)
        throws Exception
    {
        return queryForList("CliParamter.patientLimit", map);
    }
    
    public Map patientInfoPrint(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliParamter.patientInfoPrint", map);
    }
    
    public List admittedHospital(Map map)
        throws Exception
    {
        return queryForList("CliParamter.admittedHospital", map);
    }
    
    public void deleteAdmittedHospital(Map map)
        throws Exception
    {
        update("CliParamter.deleteAdmittedHospital", map);
    }
    
    public Integer systemtParams(Map map)
        throws Exception
    {
        return (Integer)this.queryForExtObject("CliParamter.systemtParams", map);
    }
    
    public void insertSysParams(Map map)
        throws Exception
    {
        insert("CliParamter.insertSysParams", map);
    }
    
    public Integer sysParamters(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.sysParamters", map);
    }
    
    public void deleteSYSUserParameters(Map map)
        throws Exception
    {
        delete("CliParamter.deleteSYSUserParameters", map);
    }
    
    public void deleteUserParams(Map map)
        throws Exception
    {
        delete("CliParamter.deleteUserParams", map);
    }
    
    public Map getParamters(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliParamter.getParamters", map);
    }
    
    public Map getParamNameAndEvent(Map map)
        throws Exception
    {
        return (Map)queryForExtObject("CliParamter.getParamNameAndEvent", map);
    }
    
    public void execSYSEventLogsInsert(Map map)
        throws Exception
    {
        insert("CliParamter.execSYSEventLogsInsert", map);
    }
    
    public Long execCoreNewIdSYSEventLogs(Map map)
        throws Exception
    {
        return (Long)queryForExtObject("CliParamter.execCoreNewIdSYSEventLogs", map);
    }
    
    public void updateSysParams(Map map)
        throws Exception
    {
        update("CliParamter.updateSysParams", map);
    }
    
    public Integer queryParams(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.queryParams", map);
    }
    
    public void insertSystemUserParamters(Map map)
        throws Exception
    {
        update("CliParamter.insertSystemUserParamters", map);
    }
    
    public void execClinicBLP1Edit(Map map)
        throws Exception
    {
        update("CliParamter.execClinicBLP1Edit", map);
    }
    
    public Integer BLP02(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP02", map);
    }
    
    public Integer BLP14(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP14", map);
    }
    
    public Integer BLP21(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP21", map);
    }
    
    public Integer BLP26(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP26", map);
    }
    
    public Integer BLP27(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP27", map);
    }
    
    public Integer BLP49(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP49", map);
    }
    
    public Integer BLP51(Map map)
        throws Exception
    {
        return (Integer)queryForExtObject("CliParamter.BLP51", map);
    }
    
    public void execClinicBDP1edit(Map map)
        throws Exception
    {
        update("CliParamter.execClinicBDP1edit", map);
    }
    
    public List sendAdviceHACRule()
        throws Exception
    {
        return queryForList("CliParamter.sendAdviceHACRule", null);
    }
    
    public List limitDrug()
        throws Exception
    {
        return queryForList("CliParamter.limitDrug", null);
    }
    
    public List automaticMedicineOption()
        throws Exception
    {
        return queryForList("CliParamter.automaticMedicineOption", null);
    }
    
    public List payTypeproperty()
        throws Exception
    {
        return queryForList("CliParamter.payTypeproperty", null);
    }
    
    public List pathLimitOption(Map map)
        throws Exception
    {
        return queryForList("CliParamter.pathLimitOption", null);
    }
    
    public List patientTypeExtends()
        throws Exception
    {
        return queryForList("CliParamter.patientTypeExtends", null);
    }
    
    public List limitMedicalDays()
        throws Exception
    {
        return queryForList("CliParamter.limitMedicalDays", null);
    }
    
    public void updateBDA1(Map map)
        throws Exception
    {
        update("CliParamter.updateBDA1", map);
    }
    
    public void clinicAAS1Edit(Map map)
        throws Exception
    {
        update("CliParamter.clinicAAS1Edit", map);
    }
    
    public String replaceSQL(Map map)
        throws Exception
    {
        return (String)queryForExtObject("CliParamter.replaceSQL", map);
    }
    
    public List guominList(Map map) throws Exception
    {
        return queryForList("CliParamter.guominList", map);
    }

    public List jibingList(Map map) throws Exception
    {
        return queryForList("CliParamter.jibingList", map);
    }
    
    public List yijuList(Map map) throws Exception
    {
        return queryForList("CliParamter.yijuList", map);
    }

    public List zhenduanjieguoList(Map map) throws Exception
    {
        return queryForList("CliParamter.zhenduanjieguoList", map);
    }

    public void saveVal1(Map map) throws Exception
    {
        update("CliParamter.saveVal1", map);
    }

    public List queryGuominyaowu(Map map) throws Exception
    {
        return queryForList("CliParamter.queryGuominyaowu", map);
    }

}
